package bishi.xunfei;

/**
 * @author: 唐小尊
 * @email: 1171702529@qq.com
 * @cate: 2021/08/15 19:26
 */
public class one {
    public static void main(String[] args) {
        System.out.println(changeNumber(2));
    }
    public static int changeNumber (int num) {
        // write code here
        int now = 1;
        int k = 2;
        while(k>0){
            int p = now&num;
            if(p==0){
                k--;
                if(k==0) return num|now;
                now = now<<1;
            }else{
                now = now<<1;
            }
        }
        return num|now;
    }
}
